package com.arpa.oms.domain.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 供应商DTO
 * </p>
 *
 * @author wangdong
 * @since 2021-07-21
 */
@Data
@ApiModel(value="SupplierFormDTO对象", description="供应商")
public class OmsSupplierFormDTO implements java.io.Serializable{


    @ApiModelProperty(value = "全局code")
    private String code;

    @ApiModelProperty(value = "供应商编码")
    @Length(max = 100, message = "供应商编码长度不能大于100个字符", groups = {Save.class, Update.class})
    private String supplierCode;

    @ApiModelProperty(value = "供应商名称")
    @Length(max = 64, message = "供应商名称长度不能大于64个字符", groups = {Save.class, Update.class})
    private String name;

    @ApiModelProperty(value = "供应商类别")
    private String supplierCategory;

    @ApiModelProperty(value = "食安许可证号")
    @Length(max = 64, message = "食安许可证号长度不能大于64个字符", groups = {Save.class, Update.class})
    private String foodSafetyLicenseNo;

    @ApiModelProperty(value = "入驻商")
    private String shipmentCode;

    @ApiModelProperty(value = "货主名称")
    private String shipmentName;

    @ApiModelProperty(value = "联系人")
    @Length(max = 32, message = "联系人长度不能大于32个字符", groups = {Save.class, Update.class})
    private String contacts;

    @ApiModelProperty(value = "手机号")
    @Length(max = 32, message = "手机号长度不能大于32个字符", groups = {Save.class, Update.class})
    private String phone;

    @ApiModelProperty(value = "信用代码")
    @Length(max = 100, message = "信用代码长度不能大于100个字符", groups = {Save.class, Update.class})
    private String businessLicenseImgNumber;

    @ApiModelProperty(value = "法人")
    @Length(max = 100, message = "法人长度不能大于100个字符", groups = {Save.class, Update.class})
    private String legalPerson;

    @ApiModelProperty(value = "身份证号")
    @Length(max = 20, message = "身份证号长度不能大于20个字符", groups = {Save.class, Update.class})
    private String identificationNumber;

    @ApiModelProperty(value = "税点")
    private BigDecimal taxPoint;

    @ApiModelProperty(value = "区域信息")
    private List<String> areaList;

    @ApiModelProperty(value = "地址")
    @Length(max = 500, message = "地址长度不能大于500个字符", groups = {Save.class, Update.class})
    private String address;

    @ApiModelProperty(value = "备注")
    @Length(max = 200, message = "备注长度不能大于200个字符", groups = {Save.class, Update.class})
    private String remark;

    @ApiModelProperty(value = "是否结算")
    private Integer isSettlement;

    public interface Save {

    }

    public interface Update {

    }
}
